package demo02;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;

public class App{
    
    public static void main(String[] args) {
        ThreadFactory tFactory = ThreadExceptionUtils.getMyThreadFactory();
		ExecutorService service = Executors.newCachedThreadPool(tFactory);
        Runnable task = new Task();
        service.execute(task);
    }
}

